package com.biz.model.common;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.sun.jmx.snmp.Timestamp;


/**
 * 卡券信息
 * @author JC
 *
 */
public class WxCard
{
	
	private String id = "";//表id
	private String status = "CARD_STATUS_VERIFY_OK"; //卡券状态（“CARD_STATUS_NOT_VERIFY”,待审核；“CARD_STATUS_VERIFY_FAIL”,审核失败；“CARD_STATUS_VERIFY_OK”，通过审核；“CARD_STATUS_USER_DELETE”，卡券被商户删除；“CARD_STATUS_DISPATCH”，在公众平台投放过的卡券）
	private String card_id = "";
	private String card_type = "CASH";//团购券类型（GROUPON 团购券, CASH 代金券,DISCOUNT  折扣券 , GIFT 礼品券,GENERAL_COUPON 优惠券）
	private String logo_url="";//图片logo
	private String brand_name = "爱尚官网";//商户名字,字数上限为12个汉字。
	private String code_type = "CODE_TYPE_TEXT";//展示类型"CODE_TYPE_TEXT"，文本；"CODE_TYPE_BARCODE"，一维码 ；"CODE_TYPE_QRCODE"，二维码；"CODE_TYPE_ONLY_QRCODE",二维码无code显示；"CODE_TYPE_ONLY_BARCODE",一维码无code显示；
	private String title = "";//*卡券名，字数上限为9个汉字
	private String sub_title;//券名，字数上限为18个汉字
	private String color = "Color010";//券颜色
	private String notice;//卡券使用提醒，字数上限为16个汉字。
	private String description;//卡券使用说明，字数上限为1024个汉字。
	private Integer quantity=0;//卡券库存的数量，上限为100000000。
	private String type = "DATE_TYPE_FIX_TIME_RANGE";//DATE_TYPE_FIX_TIME_RANGE 表示固定日期区间，DATE_TYPE_FIX_TERM表示固定时长（自领取后按天算。
	private String begin_timestamp="2015-12-1";//开始时间 （DATE_TYPE_FIX_TIME_RANGE时专用）默认：2015-01-01
	private String end_timestamp="2015-12-4";//结束时间（DATE_TYPE_FIX_TIME_RANGE时专用）默认：2015-01-01
	private Integer fixed_term=1;//（DATE_TYPE_FIX_TERM时专用）
	private Integer fixed_begin_term=0;//（DATE_TYPE_FIX_TERM时专用）
	private String use_custom_code="1";//是否自定义Code码。 0 :false  1: true填写true或false，默认为false。通常自有优惠码系统的开发者选择自定义Code码，并在卡券投放时带入Code码，详情见是否自定义Code码
	private String bind_openid="1";//是否指定用户领取， 0 :false  1: true填写true或false。默认为false。通常指定特殊用户群体投放卡券或防止刷券时选择指定用户领取
	private String service_phone;//客服电话
	private String location_id_list;//门店位置poiid,“,”号间隔
	private String source;//第三方来源名，例如同程旅游、大众点评
	private String custom_url_name;//自定义跳转外链的入口名字//15字节
	private String custom_url;//url外连
	private String custom_url_sub_title;//显示在入口右侧的提示语//18字节
	private String promotion_url_name;//营销场景的自定义入口名称//15字节
	private String promotion_url;//入口跳转外链的地址链接。
	private String promotion_url_sub_title;//显示在营销入口右侧的提示语//18字节
	private Integer get_limit=1;//每人可领券的数量限制,不填写默认为50
	private String can_share="0";//卡券领取页面是否可分享  0:否1：是
	private String can_give_friend="0";//卡券是否可转赠  0:否1：是
	private String get_custom_code_mode;//GET_CUSTOM_CODE_MODE_DEPOSIT/填入该字段后，自定义code卡券方可进行导入code并投放的动作(导入时使用)
	////////////////////////////////////////////////////////////////////////////////////////////////////
	private String deal_detail ="";//团购券专用，团购详情。
	
	private Double least_cost = 0.00;  //代金券专用，表示起用金额（单位为分）,如果无起用门槛则填0。
	private Double reduce_cost = 0.00;  //代金券专用，表示减免金额。（单位为分）
	
	private Integer discount=0;  //折扣券专用，表示打折额度（百分比）。填30就是七折。
	
	private String gift = ""; //礼品券专用，填写礼品的名称
	
	private String default_detail = ""; //优惠券专用，填写优惠详情。
	//////////////////////////////////////////////////////////////////////////////////////////////
	private String check_consume="0";//  0 :false  1: true卡券校验时使用 是否校验code核销状态，填入true和false时的code异常状态返回数据不同。
	
	////////////////////////////////////////////////////////////////////////////////////////////////
	//卡券修改库存
	private Integer increase_stock_value=0;//增加多少库存
	private Integer reduce_stock_value=0;//减少多少库存
	
	private Short isdel = 0;
	private Date create_time = new Date();
	private Integer code = 0;
	private String img_path="";
	private String cardType;
	private int tabIndex;
	private String isRandom;
	//private String cardState;
	private String gradeId;
	//private String moneyRandom;
	private Double reduce_least;
	private Double reduce_max;
	private Integer isSpread;
	private String uselimit;
	private String userlimitName;
	private Integer useOldPrice;
	private String label;
	private String getCount;
	private String userCount;
	private String useCount;
	
	public String getCardType() {
		return cardType;
	}
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
	public int getIncrease_stock_value() {
		return increase_stock_value;
	}
	public void setIncrease_stock_value(int increase_stock_value) {
		this.increase_stock_value = increase_stock_value;
	}
	public int getReduce_stock_value() {
		return reduce_stock_value;
	}
	public void setReduce_stock_value(int reduce_stock_value) {
		this.reduce_stock_value = reduce_stock_value;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getCard_id() {
		return card_id;
	}
	public void setCard_id(String card_id) {
		this.card_id = card_id;
	}
	public String getCard_type() {
		return card_type;
	}
	public void setCard_type(String card_type) {
		this.card_type = card_type;
	}
	public String getLogo_url() {
		return logo_url;
	}
	public void setLogo_url(String logo_url) {
		this.logo_url = logo_url;
	}
	public String getBrand_name() {
		return brand_name;
	}
	public void setBrand_name(String brand_name) {
		this.brand_name = brand_name;
	}
	public String getCode_type() {
		return code_type;
	}
	public void setCode_type(String code_type) {
		this.code_type = code_type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSub_title() {
		return sub_title;
	}
	public void setSub_title(String sub_title) {
		this.sub_title = sub_title;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getNotice() {
		return notice;
	}
	public void setNotice(String notice) {
		this.notice = notice;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getBegin_timestamp() {
		return begin_timestamp;
	}
	public void setBegin_timestamp(String begin_timestamp) {
		this.begin_timestamp = begin_timestamp;
	}
	public String getEnd_timestamp() {
		return end_timestamp;
	}
	public void setEnd_timestamp(String end_timestamp) {
		this.end_timestamp = end_timestamp;
	}
	public Integer getFixed_term() {
		return fixed_term;
	}
	public void setFixed_term(Integer fixed_term) {
		this.fixed_term = fixed_term;
	}
	public Integer getFixed_begin_term() {
		return fixed_begin_term;
	}
	public void setFixed_begin_term(Integer fixed_begin_term) {
		this.fixed_begin_term = fixed_begin_term;
	}
	
	public String getService_phone() {
		return service_phone;
	}
	public void setService_phone(String service_phone) {
		this.service_phone = service_phone;
	}
	public String getLocation_id_list() {
		return location_id_list;
	}
	public void setLocation_id_list(String location_id_list) {
		this.location_id_list = location_id_list;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getCustom_url_name() {
		return custom_url_name;
	}
	public void setCustom_url_name(String custom_url_name) {
		this.custom_url_name = custom_url_name;
	}
	public String getCustom_url() {
		return custom_url;
	}
	public void setCustom_url(String custom_url) {
		this.custom_url = custom_url;
	}
	public String getCustom_url_sub_title() {
		return custom_url_sub_title;
	}
	public void setCustom_url_sub_title(String custom_url_sub_title) {
		this.custom_url_sub_title = custom_url_sub_title;
	}
	public String getPromotion_url_name() {
		return promotion_url_name;
	}
	public void setPromotion_url_name(String promotion_url_name) {
		this.promotion_url_name = promotion_url_name;
	}
	public String getPromotion_url() {
		return promotion_url;
	}
	public void setPromotion_url(String promotion_url) {
		this.promotion_url = promotion_url;
	}
	public String getPromotion_url_sub_title() {
		return promotion_url_sub_title;
	}
	public void setPromotion_url_sub_title(String promotion_url_sub_title) {
		this.promotion_url_sub_title = promotion_url_sub_title;
	}
	public Integer getGet_limit() {
		return get_limit;
	}
	public void setGet_limit(Integer get_limit) {
		this.get_limit = get_limit;
	}
	
	public String getGet_custom_code_mode() {
		return get_custom_code_mode;
	}
	public void setGet_custom_code_mode(String get_custom_code_mode) {
		this.get_custom_code_mode = get_custom_code_mode;
	}
	public String getDeal_detail() {
		return deal_detail;
	}
	public void setDeal_detail(String deal_detail) {
		this.deal_detail = deal_detail;
	}
	
	public Integer getDiscount() {
		return discount;
	}
	public void setDiscount(Integer discount) {
		this.discount = discount;
	}
	public String getGift() {
		return gift;
	}
	public void setGift(String gift) {
		this.gift = gift;
	}
	public String getDefault_detail() {
		return default_detail;
	}
	public void setDefault_detail(String default_detail) {
		this.default_detail = default_detail;
	}
	
	public Short getIsdel() {
		return isdel;
	}
	public void setIsdel(Short isdel) {
		this.isdel = isdel;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getImg_path() {
		return img_path;
	}
	public void setImg_path(String img_path) {
		this.img_path = img_path;
	}
	public String getCan_share() {
		return can_share;
	}
	public void setCan_share(String can_share) {
		this.can_share = can_share;
	}
	public String getCan_give_friend() {
		return can_give_friend;
	}
	public void setCan_give_friend(String can_give_friend) {
		this.can_give_friend = can_give_friend;
	}
	public String getUse_custom_code() {
		return use_custom_code;
	}
	public void setUse_custom_code(String use_custom_code) {
		this.use_custom_code = use_custom_code;
	}
	public String getBind_openid() {
		return bind_openid;
	}
	public void setBind_openid(String bind_openid) {
		this.bind_openid = bind_openid;
	}
	public String getCheck_consume() {
		return check_consume;
	}
	public void setCheck_consume(String check_consume) {
		this.check_consume = check_consume;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public void setIncrease_stock_value(Integer increase_stock_value) {
		this.increase_stock_value = increase_stock_value;
	}
	public void setReduce_stock_value(Integer reduce_stock_value) {
		this.reduce_stock_value = reduce_stock_value;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public Double getLeast_cost() {
		return least_cost;
	}
	public void setLeast_cost(Double least_cost) {
		this.least_cost = least_cost;
	}
	public Double getReduce_cost() {
		return reduce_cost;
	}
	public void setReduce_cost(Double reduce_cost) {
		this.reduce_cost = reduce_cost;
	}
	public int getTabIndex() {
		return tabIndex;
	}
	public void setTabIndex(int tabIndex) {
		this.tabIndex = tabIndex;
	}
/*	public String getCardState() {
		return cardState;
	}
	public void setCardState(String cardState) {
		this.cardState = cardState;
	}*/
	public String getGradeId() {
		return gradeId;
	}
	public void setGradeId(String gradeId) {
		this.gradeId = gradeId;
	}
/*	public String getMoneyRandom() {
		return moneyRandom;
	}
	public void setMoneyRandom(String moneyRandom) {
		this.moneyRandom = moneyRandom;
	}*/
	public Double getReduce_least() {
		return reduce_least;
	}
	public void setReduce_least(Double reduce_least) {
		this.reduce_least = reduce_least;
	}
	public Double getReduce_max() {
		return reduce_max;
	}
	public void setReduce_max(Double reduce_max) {
		this.reduce_max = reduce_max;
	}
	public Integer getIsSpread() {
		return isSpread;
	}
	public void setIsSpread(Integer isSpread) {
		this.isSpread = isSpread;
	}
	public String getUselimit() {
		return uselimit;
	}
	public void setUselimit(String uselimit) {
		this.uselimit = uselimit;
	}
	public Integer getUseOldPrice() {
		return useOldPrice;
	}
	public void setUseOldPrice(Integer useOldPrice) {
		this.useOldPrice = useOldPrice;
	}
	public String getIsRandom() {
		return isRandom;
	}
	public void setIsRandom(String isRandom) {
		this.isRandom = isRandom;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getUserlimitName() {
		return userlimitName;
	}
	public void setUserlimitName(String userlimitName) {
		this.userlimitName = userlimitName;
	}
	public String getGetCount() {
		return getCount;
	}
	public void setGetCount(String getCount) {
		this.getCount = getCount;
	}
	public String getUserCount() {
		return userCount;
	}
	public void setUserCount(String userCount) {
		this.userCount = userCount;
	}
	public String getUseCount() {
		return useCount;
	}
	public void setUseCount(String useCount) {
		this.useCount = useCount;
	}
	
	
	
}
